{include file = 'f-header.tpl'}
<div class="main">
			<div class="s_left">
				<img src="{$baseUrl}/public/images/logo_s.png" />
				<img style="margin-left:-5px;" src="{$baseUrl}/public/images/s1.png" />
				<form name="form1" method="post" action="{$baseUrl}info/search">

					<input class="kw" name="keyword" placeholder="keyword..." />
					<select name="class">
						<option value="all">所有类别</option>
						<option value="1">类别一</option>
						<option value="2">类别二</option>
						<option value="3">类别三</option>
						<option value="4">类别四</option>
					</select>
					<select name="city">
						<option value="all">所有城市</option>
						<option value="米兰">米兰</option>
						<option value="成都">成都</option>
						<option value="罗马">罗马</option>
					</select>
					<a href="javascript:form1.submit();" class="search" ><img src="{$baseUrl}/public/images/search.png" /></a>
				</form>
			<a href="#"><img style="padding:8px;" src="{$baseUrl}/public/images/6.jpg" /></a>
			</div>
			<div class="s_right">
				<div class="btns">
					<a href="{$baseUrl}ads/addForm"><img src="{$baseUrl}/public/images/btn1.png" /></a>
                    <!--
					<a href="#"><img src="{$baseUrl}/public/images/btn2.png" /></a>
					<a href="#"><img src="{$baseUrl}/public/images/btn3.png" /></a>
					<a href="#"><img src="{$baseUrl}/public/images/btn4.png" /></a>
                    -->
				</div>

				<div class="an_h">
					<div class="an_h_p">
						<p style="color:#c09e6e;">Asia Annunci</p>
						<p style="font-size:18px;">Search:  <span style="color:#c09e6e;">Message</span>  &  Zoria: <span style="color:#c09e6e">Zoria 1</span></p>
					</div>
					<div class="mbx" style="margin-top:20px;">
						<a href="#">Categorie</a>  >  <a href="#">Studio privato</a>
					</div>
					<div class="clear"></div>
				</div>

                {foreach item="value" key="key" from=$topRs} 
				<div class="an_box">
					<div class="ad_hd">
						<span>{$value.ads_name}</span>
					</div>
					<div>
						<div class="an_box_left">
							<img src="{$value.ads_pic}" />
						</div>
						<div class="an_box_right">
							<p class="bold" style="color:#ff0000;">{$value.ads_name}</p><br />
                            <p>{$value.ads_content}</p>
						</div>
						<div class="clear"></div>
					</div>
				</div>
                {/foreach}
                {foreach item="value" key="key" from=$rs} 
   			<div class="an_box">
					<div>
						<p class="an_box_h left">{$value.ads_name}</p>
						<p class="right an_box_time">{$value.ads_time|date_format:"%Y-%m-<span>%d</span>"}</p>
						<div class="clear"></div>
					</div>
					<p>Visualizza tutti gli annunci di Irina</p>
					<div class="an_box_cont">
						<div class="an_box_cont_img"><img width=105 height=105 src="{$value.ads_pic}" /></div>
						<div class="an_box_cont_txt">
							<p>sono una ragazza diplomata mi propongocome massaggiatrice ottima presenza esperta in massaggi estetici rilassanti terapeutici offre serivzi profes. zona Milano nord e brianza a domicilio non ricevo non rispondo a chiamate anonimie appuntamenti al</p><br/>
							<p>32.72.253.88.5</p>
						</div>
						<div class="clear"></div>
					</div>
				</div>

            {/foreach}
			<p class="pages">
                    {if !empty($pre)}
                    <a href="{$baseUrl}ads/adsList?page={$pre}" class="prev pa"> &nbsp;&nbsp;Prev</a>
                    {/if}
                        {section name=loop loop=$all} 
					        <a href="{$baseUrl}ads/adsList?page={$smarty.section.loop.index+1}" 
                                class="pa {if $smarty.section.loop.index+1 eq $page} now{/if} ">
                                {$smarty.section.loop.index+1}
                            </a>
                        {/section}
                        <a></a>
                        {if !empty($last)}
					        <a href="{$baseUrl}ads/adsList?page={$last}" class="next pa">Next</a>
                        {/if}
				</p>
			</div>
                <p>{$tips}</p>
			<div class="clear"></div>
		</div>

{include file = 'f-footer.tpl'}
